<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><strong>Label</strong></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>Label</code></h1>
<p>文本标签视图,继承自View</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/View.html#">View</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#Label:new">Label:new ()</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getText">Label:getText ()</a></td>
	<td class="summary">获取文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setText">Label:setText (text)</a></td>
	<td class="summary">设置文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getFontSize">Label:getFontSize ()</a></td>
	<td class="summary">获取文本大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setFontSize">Label:setFontSize (size)</a></td>
	<td class="summary">设置文本大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:isWordWrap">Label:isWordWrap ()</a></td>
	<td class="summary">获取文本是否自动换行</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setWordWrap">Label:setWordWrap (is_wrap)</a></td>
	<td class="summary">设置文本是否自动换行</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:isBold">Label:isBold ()</a></td>
	<td class="summary">文本是否使用粗体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setBold">Label:setBold (is_bold)</a></td>
	<td class="summary">设置文本是否使用粗体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:isUnderLine">Label:isUnderLine ()</a></td>
	<td class="summary">文本是否使用下划线</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setUnderLine">Label:setUnderLine (is_underline)</a></td>
	<td class="summary">设置文本是否使用下划线</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:isDeleteLine">Label:isDeleteLine ()</a></td>
	<td class="summary">文本是否使用删除线</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setUnderLine">Label:setUnderLine (is_delete_line)</a></td>
	<td class="summary">设置文本是否使用删除线</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:isItalics">Label:isItalics ()</a></td>
	<td class="summary">文本是否使用斜体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setItalics">Label:setItalics (is_italics)</a></td>
	<td class="summary">设置文本是否使用斜体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getLineSpacing">Label:getLineSpacing ()</a></td>
	<td class="summary">获取文字行间距</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setLineSpacing">Label:setLineSpacing (spacing)</a></td>
	<td class="summary">设置文字行间距</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getFontName">Label:getFontName ()</a></td>
	<td class="summary">获取字体名称</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setFontName">Label:setFontName (font)</a></td>
	<td class="summary">设置字体名称</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getVerticalTextAlignmet">Label:getVerticalTextAlignmet ()</a></td>
	<td class="summary">获取文字垂直方向对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setVerticalTextAlignmet">Label:setVerticalTextAlignmet (alignmet)</a></td>
	<td class="summary">设置文字垂直方向对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getTextAlignment">Label:getTextAlignment ()</a></td>
	<td class="summary">获取文字对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setTextAlignment">Label:setTextAlignment (alignmet)</a></td>
	<td class="summary">设置文字对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getDimensions">Label:getDimensions ()</a></td>
	<td class="summary">获取标签的尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setDimensions">Label:setDimensions (size)</a></td>
	<td class="summary">设置标签的尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getNumberOfLine">Label:getNumberOfLine ()</a></td>
	<td class="summary">获取标签的行数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setNumberOfLine">Label:setNumberOfLine (count)</a></td>
	<td class="summary">设置标签的行数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getEnableCopy">Label:getEnableCopy ()</a></td>
	<td class="summary">是否允许拷贝</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setEnableCopy">Label:setEnableCopy (enable)</a></td>
	<td class="summary">设置是否允许拷贝</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getLabelSize">Label:getLabelSize ()</a></td>
	<td class="summary">获取标签的尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:sizeToFit">Label:sizeToFit ()</a></td>
	<td class="summary">设置根据内容自动改变尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:unsizeToFit">Label:unsizeToFit ()</a></td>
	<td class="summary">设置根据内容不自动改变尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setFont">Label:setFont (Font)</a></td>
	<td class="summary">设置字体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getFont">Label:getFont ()</a></td>
	<td class="summary">获取字体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:setColor">Label:setColor (Color)</a></td>
	<td class="summary">设置颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Label:getColor">Label:getColor ()</a></td>
	<td class="summary">获取颜色</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "Label:new"></a>
    <strong>Label:new ()</strong>
    </dt>
    <dd>
    创建对象



    <h3>Returns:</h3>
    <ol>

        Label
    </ol>




</dd>
    <dt>
    <a name = "Label:getText"></a>
    <strong>Label:getText ()</strong>
    </dt>
    <dd>
    获取文本



    <h3>Returns:</h3>
    <ol>

        text
    </ol>




</dd>
    <dt>
    <a name = "Label:setText"></a>
    <strong>Label:setText (text)</strong>
    </dt>
    <dd>
    设置文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getFontSize"></a>
    <strong>Label:getFontSize ()</strong>
    </dt>
    <dd>
    获取文本大小



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "Label:setFontSize"></a>
    <strong>Label:setFontSize (size)</strong>
    </dt>
    <dd>
    设置文本大小


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:isWordWrap"></a>
    <strong>Label:isWordWrap ()</strong>
    </dt>
    <dd>
    获取文本是否自动换行



    <h3>Returns:</h3>
    <ol>

        is_wrap
    </ol>




</dd>
    <dt>
    <a name = "Label:setWordWrap"></a>
    <strong>Label:setWordWrap (is_wrap)</strong>
    </dt>
    <dd>
    设置文本是否自动换行


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">is_wrap</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:isBold"></a>
    <strong>Label:isBold ()</strong>
    </dt>
    <dd>
    文本是否使用粗体



    <h3>Returns:</h3>
    <ol>

        is_bold
    </ol>




</dd>
    <dt>
    <a name = "Label:setBold"></a>
    <strong>Label:setBold (is_bold)</strong>
    </dt>
    <dd>
    设置文本是否使用粗体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">is_bold</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:isUnderLine"></a>
    <strong>Label:isUnderLine ()</strong>
    </dt>
    <dd>
    文本是否使用下划线



    <h3>Returns:</h3>
    <ol>

        is_underline
    </ol>




</dd>
    <dt>
    <a name = "Label:setUnderLine"></a>
    <strong>Label:setUnderLine (is_underline)</strong>
    </dt>
    <dd>
    设置文本是否使用下划线


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">is_underline</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:isDeleteLine"></a>
    <strong>Label:isDeleteLine ()</strong>
    </dt>
    <dd>
    文本是否使用删除线



    <h3>Returns:</h3>
    <ol>

        is<em>delete</em>line
    </ol>




</dd>
    <dt>
    <a name = "Label:setUnderLine"></a>
    <strong>Label:setUnderLine (is_delete_line)</strong>
    </dt>
    <dd>
    设置文本是否使用删除线


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">is_delete_line</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:isItalics"></a>
    <strong>Label:isItalics ()</strong>
    </dt>
    <dd>
    文本是否使用斜体



    <h3>Returns:</h3>
    <ol>

        is_italics
    </ol>




</dd>
    <dt>
    <a name = "Label:setItalics"></a>
    <strong>Label:setItalics (is_italics)</strong>
    </dt>
    <dd>
    设置文本是否使用斜体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">is_italics</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getLineSpacing"></a>
    <strong>Label:getLineSpacing ()</strong>
    </dt>
    <dd>
    获取文字行间距



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        spacing
    </ol>




</dd>
    <dt>
    <a name = "Label:setLineSpacing"></a>
    <strong>Label:setLineSpacing (spacing)</strong>
    </dt>
    <dd>
    设置文字行间距


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">spacing</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getFontName"></a>
    <strong>Label:getFontName ()</strong>
    </dt>
    <dd>
    获取字体名称



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        font
    </ol>




</dd>
    <dt>
    <a name = "Label:setFontName"></a>
    <strong>Label:setFontName (font)</strong>
    </dt>
    <dd>
    设置字体名称


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">font</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getVerticalTextAlignmet"></a>
    <strong>Label:getVerticalTextAlignmet ()</strong>
    </dt>
    <dd>
    获取文字垂直方向对齐方式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        alignmet
[0:top 1:center 2:bottom]
    </ol>




</dd>
    <dt>
    <a name = "Label:setVerticalTextAlignmet"></a>
    <strong>Label:setVerticalTextAlignmet (alignmet)</strong>
    </dt>
    <dd>
    设置文字垂直方向对齐方式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">alignmet</span>
            <span class="types"><span class="type">int</span></span>
        [0:top 1:center 2:bottom]
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getTextAlignment"></a>
    <strong>Label:getTextAlignment ()</strong>
    </dt>
    <dd>
    获取文字对齐方式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        alignmet
[0:left 1:center 2:right]
    </ol>




</dd>
    <dt>
    <a name = "Label:setTextAlignment"></a>
    <strong>Label:setTextAlignment (alignmet)</strong>
    </dt>
    <dd>
    设置文字对齐方式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">alignmet</span>
            <span class="types"><span class="type">int</span></span>
        [0:left 1:center 2:right]
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getDimensions"></a>
    <strong>Label:getDimensions ()</strong>
    </dt>
    <dd>
    获取标签的尺寸



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "Label:setDimensions"></a>
    <strong>Label:setDimensions (size)</strong>
    </dt>
    <dd>
    设置标签的尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">Size</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getNumberOfLine"></a>
    <strong>Label:getNumberOfLine ()</strong>
    </dt>
    <dd>
    获取标签的行数



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        count
    </ol>




</dd>
    <dt>
    <a name = "Label:setNumberOfLine"></a>
    <strong>Label:setNumberOfLine (count)</strong>
    </dt>
    <dd>
    设置标签的行数


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">count</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getEnableCopy"></a>
    <strong>Label:getEnableCopy ()</strong>
    </dt>
    <dd>
    是否允许拷贝



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        enable
    </ol>




</dd>
    <dt>
    <a name = "Label:setEnableCopy"></a>
    <strong>Label:setEnableCopy (enable)</strong>
    </dt>
    <dd>
    设置是否允许拷贝


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">enable</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getLabelSize"></a>
    <strong>Label:getLabelSize ()</strong>
    </dt>
    <dd>
    获取标签的尺寸



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "Label:sizeToFit"></a>
    <strong>Label:sizeToFit ()</strong>
    </dt>
    <dd>
    设置根据内容自动改变尺寸







</dd>
    <dt>
    <a name = "Label:unsizeToFit"></a>
    <strong>Label:unsizeToFit ()</strong>
    </dt>
    <dd>
    设置根据内容不自动改变尺寸







</dd>
    <dt>
    <a name = "Label:setFont"></a>
    <strong>Label:setFont (Font)</strong>
    </dt>
    <dd>
    设置字体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Font</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getFont"></a>
    <strong>Label:getFont ()</strong>
    </dt>
    <dd>
    获取字体



    <h3>Returns:</h3>
    <ol>

        Font
    </ol>




</dd>
    <dt>
    <a name = "Label:setColor"></a>
    <strong>Label:setColor (Color)</strong>
    </dt>
    <dd>
    设置颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Label:getColor"></a>
    <strong>Label:getColor ()</strong>
    </dt>
    <dd>
    获取颜色



    <h3>Returns:</h3>
    <ol>

        Color
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
